package com.ruan.lkx.service;

import com.alibaba.fastjson.JSONObject;
import com.ruan.lkx.Constants;
import com.ruan.lkx.bean.HotVideo;
import com.ruan.lkx.net.HttpUtils;

import java.net.URLEncoder;
import java.util.List;

/**
 * @author Hy
 * @ClassName com.ruan.lkx.service.HistoryServier
 * @create 2021年12月27日 12:45
 * @desc:
 */
public class HistoryServier {
    public List<historyField> getHistoryField(){
        String url= Constants.HISTORY_URL+"?key="+Constants.YOURKEY+"&date=1/1";
        String result= HttpUtils.get(url);
        System.out.println(result);
        historyReturn historyReturn = JSONObject.parseObject(result, historyReturn.class);
        return historyReturn.result;

    }


}
